/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oohadv.dao.ibase;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author vinits
 * @param <T>
 * @param <ID>
 */
public interface GenericDAO<T, ID extends Serializable> {
    
    T findById(ID id);  
  
    List<T> findAll();  
  
    List<T> findByRange(int startLimit,int maxLimit);  
  
    ID save(T entity);
    
    boolean update(T entity);
    
    boolean delete(T entity);
  
}
  
